package com.senseauto.aicamera;

import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

import androidx.appcompat.app.AppCompatActivity;


/**
 * Base class to all activity in this project
 *
 * @author zengbin@sensetime.com
 * @version 1.0.0
 * create on 2020/5/3
 */

public abstract class BaseActivity extends AppCompatActivity {

    String TAG = "activity-dddd";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        initView();
    }

    protected abstract void initView();
}
